﻿
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Oliving.Edge.Model.Models
{
    ///<summary>
    ///
    ///</summary> 

    [SugarTable("DTSN_ShangWeiJi")]
    [Serializable]
    public class DTSN_ShangWeiJi
    {
        public DTSN_ShangWeiJi()
        {
        }


        /// <summary> 
        /// Desc:上位机编号主键 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID", ColumnDescription = "上位机编号主键")]
        public int ID { get; set; }



        /// <summary> 
        /// Desc:上位机名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SWJ_Name", ColumnDescription = "上位机名称", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string SWJ_Name { get; set; }



        /// <summary> 
        /// Desc:上位机代码 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SWJ_Code", ColumnDescription = "上位机代码", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string SWJ_Code { get; set; }



        /// <summary> 
        /// Desc:上位机地址  
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SWJ_Address", ColumnDescription = "上位机地址 ", IsNullable = true, Length = 1000, ColumnDataType = "nvarchar")]
        public string SWJ_Address { get; set; }



        /// <summary> 
        /// Desc:上位机IP 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SWJ_IP", ColumnDescription = "上位机IP", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string SWJ_IP { get; set; }

        [SugarColumn(ColumnName = "SWJ_Port",
            ColumnDescription = "上位机软件端口")]
        public int SWJ_Port { get; set; }

        /// <summary> 
        /// Desc:备注 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SWJ_Remark", ColumnDescription = "备注", IsNullable = true, Length = 1000, ColumnDataType = "nvarchar")]
        public string SWJ_Remark { get; set; }



        /// <summary> 
        /// Desc:状态 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SWJ_State", ColumnDescription = "状态", IsNullable = true)]
        public int? SWJ_State { get; set; }


    }





}
